package com.uchiha.nova.core.tool.support;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.uchiha.nova.core.tool.node.INode;
import lombok.Data;

import java.util.List;

/**
 * @author 周林静
 * @Date 2022-01-18 11:13
 * @Version 1.0
 */
@Data
public class DictBizVO implements INode<DictBizVO> {
    Long id;
    String label;
    String value;
    /**
     * 父节点ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    /**
     * 上级字典
     */
    private String parentName;
    /**
     * 子孙节点
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DictBizVO> children;

    Boolean hasChildren;

}
